i=input("enter:")
if(i[-1]=="$"):
    数值=eval(i[0:-1])
    结果=数值*6
    print("换算%.2f"%结果)
elif(i[-1]=="Y"):
    s=eval(i[0:-1])
    h=s/6
    print("换算%.2f"%h)
else:
    print("错误")
